﻿using Microsoft.AspNetCore.Mvc;

namespace _27_log4net.Controllers
{
    public class FristController : Controller
    {
        public IActionResult Index()
        {
            // 传到前端的 赋值方式
            ViewBag.User = "aggie";
            ViewData["User2"] = "李四";
            TempData["User3"] = "张三";
            HttpContext.Session.SetString("User4", "王五");
            object User5 = "赵六";
            return View(User5);
        }
    }
}
